package ModelLayer;


/**
 * Write a description of class Sample here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Sample
{
    // instance variables - replace the example below with your own
    private long serialNo;
    private String acqDate;
    private double acqPrice;

    /**
     * Constructor for objects of class Sample
     */
    public Sample(long serialNo, String acqDate, double acqPrice)
    {
        // initialise instance variables
        this.serialNo = serialNo;
        this.acqDate = acqDate;
        this.acqPrice = acqPrice;
    }

    //A method to get the information regarding the sample
    public void getInfo()
    {
        System.out.println("Serial Number: "+serialNo);
        System.out.println("Acquisition Date: "+acqDate);
        System.out.println("Acquisition Price: "+acqPrice);
    }
    
    //Changes the sample attributes
    public void changeInfo(long serialNo, String acqDate, double acqPrice)
    {
        this.serialNo = serialNo;
        this.acqDate = acqDate;
        this.acqPrice = acqPrice;
    }
    
    public long getSerialNo()
    {
        return serialNo;
    }
}
